class Reqular extends egret.DisplayObjectContainer{
    private gallery:egret.BitmapText;
    private score_reqular:egret.BitmapText;
    public button = new egret.BitmapText();
    constructor(){
        super();

        RES.getResByUrl("resource/assets/reqular.fnt" , this.reqularTips , this,RES.ResourceItem.TYPE_FONT);
        
    }

    //规则tips
    public reqularTips(font:egret.BitmapFont){
       
        // 画卷
        this.gallery = new egret.BitmapText();
        this.gallery.font = font;
        this.gallery.text = "卷"  
        this.gallery.scaleX = 0.52;
        this.gallery.scaleY = 0.55;  
        this.gallery.x = 0;
        this.gallery.y = 0; 
        this.addChild(this.gallery);

        //分数规则
        this.score_reqular = new egret.BitmapText();
        this.score_reqular.font = font;
        this.score_reqular.text = "分"  
        this.score_reqular.scaleX = 0.65;
        this.score_reqular.scaleY = 0.65;  
        this.score_reqular.x = 75;
        this.score_reqular.y = 100;
        this.addChild(this.score_reqular);

        //立即开启按钮
        // this.button = new egret.BitmapText();
        this.button.font = font;
        this.button.text = "b"  
        this.button.scaleX = 0.7;
        this.button.scaleY = 0.7;  
        this.button.x = 160;
        this.button.y = 330;
        this.addChild(this.button);
    }
}